home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts44-07
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: Help with Win messages
- Date: Fri, 02 Feb 96 19:48:31 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4etpgg$7s1@sam.inforamp.net>
- References: <40.81784.1613@channel1.com>
- NNTP-Posting-Host: ts44-07.tor.inforamp.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <40.81784.1613@channel1.com>,
- adam.saltman@channel1.com (Adam Saltman) wrote:
- >How can I design a window in Borland C++ 4.5 with OWL which will accept
- >messages from the Windows queue that are generated by an outside driver?
- >
- >That is, my driver sends messages like OL_DA_BUFFER_DONE, and I want to
- >design a handler which works when this message is received. I can't do
- >it in the Class Expert, as this message is not a standard Windows
- >message. Any suggestions? Or do I have to resort to C programming with
- >a message queue checking loop?
-
- Here's an example response table, in one of my own programs.
- The section between the comment are generated by the Experts,
- but I can write my own outside of the comments.
-
- DEFINE_RESPONSE_TABLE1(MWChangeDirectoryDialog, TDialog)
- //{{MWChangeDirectoryDialogRSP_TBL_BEGIN}}
- EV_LBN_DBLCLK(IDC_CD_LISTBOX, LBNDblclk),
- EV_BN_CLICKED(IDOK, CMOk),
- //{{MWChangeDirectoryDialogRSP_TBL_END}}
- EV_COMMAND(OL_DA_BUFFER_DONE, BufferDone)
- END_RESPONSE_TABLE;
-
- This might not be the solution for your problem,
- but some variation of this should work.
-
- Agrivar
-